﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ds.DataBase.Enum;

namespace Ds.DataBase.Model.PersonalAssess
{
    /// <summary>
    /// 个人考核表
    /// </summary>
    public class PersonalMain
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int pmid { set; get; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime cjsj { set; get; }
        /// <summary>
        /// 所属时间
        /// </summary>
        public DateTime sssj { set; get; }
        /// <summary>
        /// 模板ID
        /// </summary>
        public int mobanid { set; get; }
        /// <summary>
        /// 所属人ID
        /// </summary>
        public Guid ssrid { set; get; }
        /// <summary>
        /// 考核表状态
        /// </summary>
        public 考核表状态 state { set; get; }
        /// <summary>
        /// 表名
        /// </summary>
        public string tableName { set; get; }
        /// <summary>
        /// 子路径集
        /// </summary>
        public virtual ICollection<PersonalPath> PersonalPath { set; get; }
        /// <summary>
        /// 附加项集
        /// </summary>
        public virtual ICollection<AdditionalItems> AdditionalItems { set; get; }
        /// <summary>
        /// 状态记录
        /// </summary>
        public virtual ICollection<PersonalMainStateLog> StateLog { set; get; }
        /// <summary>
        /// 个人工作总结
        /// </summary>
        public virtual PersonalWorkSummary PersonalWorkSummary { set; get; }
    }
}
